package fr.uniscol.model.geo;

import java.io.Serializable;

import fr.uniscol.model.DonneeUniscol;

public class Departement implements Serializable, DonneeUniscol {

	private String codeInsee = null;
	
	private int codeMEN = 0;
	
	private String libelleLong = null;

	private Academie academie = null;
	
	public Departement(){
	}

	public String getCodeInsee() {
		return codeInsee;
	}

	public void setCodeInsee(String codeInsee) {
		this.codeInsee = codeInsee;
	}

	public int getCodeMEN() {
		return codeMEN;
	}

	public void setCodeMEN(int codeMEN) {
		this.codeMEN = codeMEN;
	}

	public String getLibelleLong() {
		return libelleLong;
	}

	public void setLibelleLong(String libelleLong) {
		this.libelleLong = libelleLong;
	}

	public Academie getAcademie() {
		return academie;
	}

	public void setAcademie(Academie academie) {
		this.academie = academie;
	}

	@Override
	public boolean equals(Object obj) {
		Departement d = (Departement) obj;
		return getCodeInsee().equalsIgnoreCase(d.getCodeInsee());
	}
}
